home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir34
/
dsktest.zip
/
DT.BAT
next >
Wrap
DOS Batch File
|
1993-05-25
|
800b
|
44 lines
@echo off
If (%1)==() goto NOPARAM
for %%A in ( c: C: d: D: e: E: f: F: g: G: ) do if %1==%%A goto NOPARAM
dtest %1
echo.
call errlev.bat
if errorlevel 3 goto NODISK
if errorlevel 2 goto UNFOR
if errorlevel 1 goto FILES-OR-VOL
if errorlevel 0 goto NOFILESNOVOL
:NODISK
echo.
echo there is no disk in %1
echo.
goto END
:UNFOR
echo.
echo the disk in %1 is unformatted
echo.
goto END
:FILES-OR-VOL
echo.
echo the disk in %1 is formatted and has files and/or a volume label
echo.
goto END
:NOFILESNOVOL
echo.
echo the disk in %1 is formatted and has neither a volume label nor files on it.
echo.
goto END
:NOPARAM
echo.
echo A floppy disk must be specified. Use DT a: =or= DT b:
echo ...or a hard disk drive was named. Specify only floppies.
echo.
:END